//
//  SDKFunction.swift
//  GitSubtreeDemo
//
//  Created by larry on 2019/4/26.
//  Copyright © 2019 twofly. All rights reserved.
//

import Foundation

/// 已连接的设备
var connectedDeviceName: String?

/**
 *  连接设备
 */
func connectDevice() {
    print("connect device")
}

/**
 *  断开与设备的连接
 */
func disconnectDevice() {
    guard connectedDeviceName != nil else {
        return
    }
    print("disconnect device = \(connectedDeviceName)")
}

/**
 *  扫描外设
 */
func scanDevice() {
    print("scan device")
}
